EMT Practice Test

1. Question Content...


Question List

Question1: What order operation is available in the My Account section in the storefront?

Question2: You are working on a project that contains a million SKUs. The merchant has requested the product view page to have a custom color schema and page layout depending on the product price range.
How do you implement this, keeping simplicity in mind?

Question3: You have created a module with a custom ACL resource and want to restrict access to resources of your module.
Which three items are restricted based on ACL role permissions? (Choose three.)

Question4: Assume that a customer's cart only includes one downloadable product.
What effect will it cause on the quote object?

Question5: You have created a module controller that responds to the following URL: /mycompany/product/load/id/123.
Which two methods will load the product model by ID as specified in the URL? (Choose two.)

Question6: How can you render a text on a page using only layout xml?

Question7: The module MyCompany_MyModule will add a new page to the admin interface at the URL path admin/mycompany/entity_grid.
How do you name the file containing the action controller class so the admin router matches the path to the class?

Question8: How many shipping addresses may be selected for an order during the checkout process?

Question9: Which two tasks are supported by Magento CLI? (Choose two.)

Question10: A module declares the route:

What is the layout handle of the storefront path /custom/feature/?

Question11: You need to find all orders in the processing state. You have written the code:

When you run the code, you get the following exception:

How do you resolve the exception?

Question12: You are developing a new theme which inherits from the Magento_Luma theme.
How is this accomplished?

Question13: You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module's configuration.
Where should the dependency be declared?

Question14: A merchant sells shoes with multiple variations such as a color and size. A shoe is represented by a configurable product. There are seven different colors and four sizes.
What is the minimal amount of simple products that represent a combination of color and size needs to be created in order to make a shoe salable?

Question15: A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals.
Which two actions do you take to make sure the newsletter is sent? (Choose two.)

Question16: A custom module must make changes to the schema following each setup:upgrade run. This must be done after all other module's schema updates have been applied.
How is this accomplished?

Question17: You are working on a Magento store which will be selling in two countries. Each country has its own set of payment methods.
How do you organize the project to support this requirement?

Question18: You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.
What two elements automatically render their children? (Choose two.)

Question19: You are building a report using complex SQL aggregations to locate the required data.
In what type of class do you put these SQL statements?

Question20: How can you access the select query of a collection?

Question21: Which method of a Magento resource model will remove a record from the database?

Question22: Assume that $collection is a new instance of a class that extends
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids.
How do you select a list of records from the database where the record ids are in the $ids list?

Question23: In a custom module you are adding a new field to the store configuration. The field will set the value for the configuration path mycompany/mymodule/myoption.
How do you supply the default value for that configuration option?

Question24: You have loaded an instance of Magento\Catalog\Model\Product in the $product variable. You know that the loaded product has the type configurable with four variations. These variations have the prices: $10, $12, $12,
$15.
What will be the result of the $product->getFinalPrice() call?

Question25: A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme.
What is a consequence of this setup?

Question26: You are debugging a problem resulting from a recently deployed around plugin. The plugin is intercepting the doSomething method. The aroundDoSomething plugin method is called successfully, but the original doSomething method is no longer being executed as expected.
What is causing this?

Question27: What will be the result of calling the save() method on a collection instance?

Question28: While reviewing a layout file named sales_order_view.xml you notice the element
<update handle="customer_account"/>
What is the purpose of this element?

Question29: Where do you change the frontName for the admin router?

Question30: You want to declare a block of the type \Magento\Framework\View\Element\Template with a template named view.phtml in the layout XML.
What is the correct layout declaration for this?

Question31: Which two ways does Magento persist category relationships in the database? (Choose two.)

Question32: A module you are developing requires the addition of new routes that should be accessible in the store front.
Where do you define your module's frontName?

Question33: A merchant asks you to extend customer functionality to allow customer accounts to be associated with two or more billing addresses.
How is this implemented?

Question34: You are adding a new entry to the backend menu that appears after
Marketing > SEO & Search > Site Map
You see the existing site map menu item is declared by the node:

What two actions do you take to configure the new menu entry location? (Choose two.)

Question35: You are creating a new page layout for your custom module.
What is the primary difference between container and block elements?

Question36: Magento allows you to specify custom values per store for product attributes created in the admin panel.
Which architectural pattern makes it possible?